package com.ww.hegou.test;

import com.ww.hegou.HegouApplication;
import com.ww.hegou.service.MoraService;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RunWith(SpringRunner.class)
@SpringBootTest(classes={HegouApplication.class})
@Slf4j
public class test {
    @Autowired
    MoraService moraService;
    @Test
    public void test(HttpServletResponse response) throws IOException {
        log.info("测试开始");

        moraService.getMoraInfo("https://mora.jp/package/43000001/4547366399547/?fmid=TOPNEWRL01",response);
    }
}
